package cn.zzu.Etrip.twoday.activity;

import android.app.Fragment;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;

import com.example.administrator.etrip.R;

import cn.zzu.Etrip.twoday.service.lightAndPrice;
import cn.zzu.Etrip.twoday.view.ContentFragment;
import cn.zzu.Etrip.twoday.view.NavigateFragment;

/**
 * Created by ASUS on 2018/5/23.
 */

public class TwoDayActivity extends AppCompatActivity {
    NavigateFragment navigateFragment ;
    ContentFragment contentFragment;


    public void onCreate(Bundle saveInstanceState){
        super.onCreate(saveInstanceState);
        setContentView(R.layout.twoday);
        createFragment();

    }
    public void createFragment() {
        navigateFragment = new NavigateFragment();
        contentFragment = new ContentFragment();
        getFragmentManager().beginTransaction().add(R.id.navigate, navigateFragment).commitAllowingStateLoss();
        getFragmentManager().beginTransaction().add(R.id.content, contentFragment).commitAllowingStateLoss();


    }

}
